@extends('backend.layouts.master')

@section('title', '主页管理')

@section('content')
<div class="admin-content">
  <div class="am-cf am-padding">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">主页管理</strong> / <small> </small></div>
  </div>

  <hr/>

  <div class="am-g" style="min-height: 800px;;">


    <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-12">


      <div  @if  (!Session::get('message')) style="display:none;" @endif  class="am-alert  @if  (Session::get('message.type')=='s')am-alert-success @endif @if (Session::get('message.type')=='w')am-alert-warning @endif @if (Session::get('message.type')=='d')am-alert-danger @endif" data-am-alert>
        <button type="button" class="am-close">&times;</button>
        <p>{{ Session::get('message.message') }}</p>
      </div>


      <form class="am-form am-form-horizontal" action="{{url('backend/homemanage')}}" method="post">
        <div class="am-form-group">
          <label for="user-name" class="am-u-sm-3 am-form-label">主页管理</label>
          <div class="am-u-sm-9">
            <input type="text" id="user-name" name="home" value="{{$home->value}}" placeholder="http://www.baidu.com">
            <small>输入你的主页地址例 http://www.baidu.com</small>
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-9 am-u-sm-push-3">
            <button type="submit" class="am-btn am-btn-primary">保存修改</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
@stop